package com.yunchang.springboot.models.base;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunchang.springboot.base.Column;
import com.yunchang.springboot.base.Id;
import com.yunchang.springboot.base.Table;
import java.io.Serializable;

import lombok.Data;

/**
 * base_sku_info
 * @author Administrator
 * @date 2020-06-23 10:48:33
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Table("base_sku_info")
public class BaseSkuInfo implements Serializable {
    /**
     * ID,系统自增
     */
    @Id("id")
    private Integer id;

    /**
     * 店铺SELLER_ID
     */
    @Column("seller_id")
    private String sellerId;

    /**
     * 区域
     */
    @Column("area")
    private String area;

    /**
     * 识别商品的唯一序列。SKU 由卖家自行分配
     */
    @Column("sku")
    private String sku;

    /**
     * 父SKU
     */
    @Column("parent_sku")
    private String parentSku;

    /**
     * 品类
     */
    @Column("category")
    private String category;

    /**
     * 创建人 ID
     */
    @Column("add_user")
    private String addUser;

    /**
     * 创建时间
     */
    @Column("add_time")
    private String addTime;

    /**
     * 修改人 ID
     */
    @Column("mod_user")
    private String modUser;

    /**
     * 修改时间
     */
    @Column("mod_time")
    private String modTime;

    /**
     * 排序字段，注意是整型
     */
    @Column("order_tag")
    private Integer orderTag;

    /**
     * 备注信息
     */
    @Column("remarks")
    private String remarks;

    private static final long serialVersionUID = 1L;

    public BaseSkuInfo(String sellerId, String area, String sku, String parentSku, String category, String addUser, String addTime, String modUser, String modTime) {
        this.sellerId = sellerId;
        this.area = area;
        this.sku = sku;
        this.parentSku = parentSku;
        this.category = category;
        this.addUser = addUser;
        this.addTime = addTime;
        this.modUser = modUser;
        this.modTime = modTime;
    }

    public BaseSkuInfo() {}
}